<!--
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2024-06-28 08:47:31
 * @LastEditTime: 2024-06-28 08:50:55
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \html\code\2_CSS\09_CSS_三大特性\像素.html
 * @Description:
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>像素</title>
    <style>
        .atguigu1 {
            width: 1cm;
            height: 1cm;
            background-color: red;
        }

        .atguigu2 {
            width: 1mm;
            height: 1mm;
            background-color: green;
        }

        .atguigu3 {
            width: 1px;
            height: 1px;
            background-color: green;
        }
    </style>
</head>

<body>
    <div class="atguigu1"></div>
    <br>
    <div class="atguigu2"></div>
    <br>
    <div class="atguigu3"></div>
</body>

</html>